package com.insigma.yanwenlong.bookkeeping.dao;

import java.sql.SQLException;
import java.util.List;

import com.insigma.yanwenlong.bookkeeping.pojo.Category;
import com.insigma.yanwenlong.bookkeeping.pojo.vo.CategoryVo;

public interface CategoryDao {
	//查找所有的类别
	List<Category> findCategories() throws SQLException;
	//根据类别编号查找directionId
	Category findDirectionIdById(int id) throws SQLException;
	//查找所有的类别及方向
	List<CategoryVo> findCategoryVos() throws SQLException;
	//增加类别
	int addCategory(Category category) throws SQLException;
}
